<?php

class Application_Model_User extends Zend_Db_Table_Abstract 
{
	protected $_name = "USERS";
	protected $_primary = "USER_ID";
	
	protected $_referenceMap = array(
		'Status' => array(
			'columns' => 'USST_ID',
			'refTableClass' => 'Application_Model_UserStatus', 
			'refColumns' => 'USST_ID'
		)
	);
	
	protected $_dependentTables = array('Application_Model_Blog');
}


class Application_Model_UserStatus extends Zend_Db_Table_Abstract 
{
	protected $_name = "USER_STATUS";
	protected $_primary = "USST_ID";
	protected $_dependentTables = array('Application_Model_User');
	
	
}